<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html>
<html>
<body>

	<nav class="navbar navbar-default navbar-static-top"
		style="background: white; margin-bottom: 0; z-index:999;">
	<div style="position:absolute;z-index:998;margin-left:160px;">
		<a href="index" target="_blank"><img
			src="/img/bookCavity_top.png" style="height:50px;width:auto;z-index:999;"
			alt="dd.com" /></a>
			
	</div>
	
	<div class="container" style="position:absolute; z-index:998;margin-top:5px;margin-left:440px;width:1100px;">
	    <div class="row" >
        <div class="col-lg-6 col-md-8 col-xs-12 search" style="line-height:50px;">
            <form action="book/list" class="form-inline" id="searchForm" role="form" method="get">
                <div class="form-group">
                    <label class="sr-only" for="keywords">关键字</label>
                    <input type="text" class="form-control" id="keywords" name="keywords" value="${keywords}"size="55"
                           placeholder="java">
                </div>
                <button type="button" onclick="submitSearchForm()" class="btn btn-info">
                    <span class="glyphicon glyphicon-search"></span>
                    搜索
                </button>
            </form>
        </div>
        <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12 search" style="line-height:50px;">
            <button type="button" onclick="window.open('cart/items')"
                    style="background-color: #ff2832;border-color: #ff2832" class="btn btn-info">
                <span class="glyphicon glyphicon-shopping-cart"></span>
                我的购物车
            </button>
            <button type="button" onclick="window.open('order/list')"
                    style="background-color: #ff2832;border-color: #ff2832" class="btn btn-info">我的订单
            </button>
        </div>
    </div>
	</div>
	



		<!-- container容器，左右留有余地 -->
		<div class="container" style="z-index:999;width:200px;margin-left:1200px;">

			<div class="navbar-header">

				<div id="header">
					<div id="header_inner">
						<ul id="header_ul" style="z-index:1000;">
							<li class="header_li"><shiro:user>
									<div class="btn-group">
										<button type="button"
											class="btn btn-default dropdown-toggle mybtn"
											data-toggle="dropdown">
											我的dd<span class="caret"></span>
										</button>
										<ul class="dropdown-menu" role="menu">
											<li><a href="user/info">个人信息</a></li>
											<shiro:hasPermission name="system">
												<li><a href="admin">后台管理</a></li>
											</shiro:hasPermission>
											<li class="divider"></li>
											<li><a href="user/logout">注销</a></li>

										</ul>
									</div>
								</shiro:user></li>

							<li class="header_li" style="z-index:1000;"><a href="">首页</a>
							<li class="header_li" style="z-index:1000;"><a href="page/register">注册</a></li>
							<li class="header_li" style="z-index:1000;"><c:if
									test="${sessionScope.loginUser == null}">
									<a href="page/login">登录</a>
								</c:if> <c:if test="${sessionScope.loginUser != null } ">
									<a href="user/info">${sessionScope.loginUser.username}</a>
								</c:if></li>

							<li class="header_li"><c:if
									test="${sessionScope.loginUser != null }">
                    欢迎您，<a href="user/info">${sessionScope.loginUser.username}</a>
								</c:if></li>


							</li>

						</ul>
					</div>
				</div>


			</div>
	</nav>

</body>
</html>
